package cn.ds.assets.module.assets.convert.metadataDatasource;

import java.util.*;

import cn.ds.assets.framework.common.pojo.PageResult;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import cn.ds.assets.module.assets.controller.admin.metadataDatasource.vo.*;
import cn.ds.assets.module.assets.dal.dataobject.metadataDatasource.BaseMetadataDatasourceDO;

/**
 * 元数据管理-数据源 Convert
 *
 * @author admin
 */
@Mapper
public interface BaseMetadataDatasourceConvert {

    BaseMetadataDatasourceConvert INSTANCE = Mappers.getMapper(BaseMetadataDatasourceConvert.class);

    BaseMetadataDatasourceDO convert(BaseMetadataDatasourceCreateReqVO bean);

    BaseMetadataDatasourceDO convert(BaseMetadataDatasourceUpdateReqVO bean);

    BaseMetadataDatasourceRespVO convert(BaseMetadataDatasourceDO bean);

    List<BaseMetadataDatasourceRespVO> convertList(List<BaseMetadataDatasourceDO> list);

    PageResult<BaseMetadataDatasourceRespVO> convertPage(PageResult<BaseMetadataDatasourceDO> page);

    List<BaseMetadataDatasourceExcelVO> convertList02(List<BaseMetadataDatasourceDO> list);

}
